{extend name='admin@main'}

{block name="button"}

{/block}

{block name="content"}

<div class="think-box-shadow">
    <table class="layui-table margin-top-15" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='text-left nowrap'>任务信息</th>
            <th class='text-left nowrap'>任务时间</th>
            <th class='text-left nowrap'>任务状态</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='text-left nowrap'>
                任务名称：{$vo.task.name}<br>
                <span class="color-desc">任务指令：{$vo.task.command}</span>
            </td>
            <td class='text-left nowrap'>
                执行时间：{$vo.executed_at|format_datetime}
            </td>
            <td class='text-left nowrap'>
                {eq name='vo.status' value='0'}
                <span class="layui-badge layui-bg-black margin-right-5">失败</span>
                {elseif $vo.status eq 1}
                <span class="layui-badge layui-bg-green margin-right-5">成功</span>
                {/eq}<br>
                执行结果：{$vo.log}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

</div>
{/block}
